import Vue from 'vue'
import VueRouter from 'vue-router'
Vue.use(VueRouter)
const router =new VueRouter({
    routes:[
        {path:'/home',component:()=>import ('../pages/home')},
        {path:'/home/play/:id',component:()=>import ('../pages/play')},
        {path:'/home/playVideo/:id',component:()=>import ('../pages/playVideo')},
        {path:'/home/dj/:id',component:()=>import ('../pages/dj')},
        {path:'/home/search/:type',component:()=>import ('../pages/search')},
    ],
    mode:'history',
    linkActiveClass:'active'
})
export default router